package com.um.jdy.platform.system.entity.dto;

import com.um.springboot.starter.orm.params.PageDTO;
import com.um.springboot.starter.orm.params.PageParams;
import lombok.Data;

/**
 * @author 邓南辉
 * 日期 2023/11/19
 * 版权所有 广州优匠科技有限公司
 */
@Data
public class LogPageDTO extends PageDTO {

    private String methodName;
    private String beginTime;
    private String endTime;

    @Override
    public PageParams toPageParams() {
        PageParams pageParams = toPageParams(
                new String[]{"methodName"},
                new String[]{"method_name"},
                "create_date", "beginTime", "endTime");
        pageParams.getCondition().put("orderby", "create_date desc");
        return pageParams;
    }
}
